package org.linlinjava.litemall.db.domain;

import lombok.Data;
import java.util.Date;

@Data
public class UserAccountBinding {
    /**
     * 主键ID
     */
    private Long id;

    /**
     * LiteMall用户ID
     */
    private Integer litemallUserId;

    /**
     * AMSP系统用户ID
     */
    private Integer amspUserId;

    /**
     * AMSP用户代码
     */
    private String amspUserCode;

    /**
     * 绑定状态(0:已解绑,1:已绑定)
     */
    private Integer bindingStatus;

    /**
     * 绑定时间
     */
    private Date bindTime;

    /**
     * 解绑时间
     */
    private Date unbindTime;

    /**
     * 创建时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getLitemallUserId() {
        return litemallUserId;
    }

    public void setLitemallUserId(Integer litemallUserId) {
        this.litemallUserId = litemallUserId;
    }

    public Integer getAmspUserId() {
        return amspUserId;
    }

    public void setAmspUserId(Integer amspUserId) {
        this.amspUserId = amspUserId;
    }

    public String getAmspUserCode() {
        return amspUserCode;
    }

    public void setAmspUserCode(String amspUserCode) {
        this.amspUserCode = amspUserCode;
    }

    public Integer getBindingStatus() {
        return bindingStatus;
    }

    public void setBindingStatus(Integer bindingStatus) {
        this.bindingStatus = bindingStatus;
    }

    public Date getBindTime() {
        return bindTime;
    }

    public void setBindTime(Date bindTime) {
        this.bindTime = bindTime;
    }

    public Date getUnbindTime() {
        return unbindTime;
    }

    public void setUnbindTime(Date unbindTime) {
        this.unbindTime = unbindTime;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return "UserAccountBinding{" +
                "id=" + id +
                ", litemallUserId=" + litemallUserId +
                ", amspUserId=" + amspUserId +
                ", amspUserCode='" + amspUserCode + '\'' +
                ", bindingStatus=" + bindingStatus +
                ", bindTime=" + bindTime +
                ", unbindTime=" + unbindTime +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                '}';
    }

    /**
     * 绑定状态常量
     */
    public static final Integer STATUS_UNBOUND = 0;
    public static final Integer STATUS_BOUND = 1;
} 